<%--
  Created by IntelliJ IDEA.
  User: ls
  Date: 2019/10/23
  Time: 16:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<a href="javascript:self.close()" >关闭窗口</a>


</body>

<script language="javascript">
    function closewin(){
        self.opener=null;
        self.close();}
    function clock(){
        i=i-1;
        document.title="本窗口将在"+i+"秒后自动关闭!";
        if(i>0)setTimeout("clock();",1000);
        else closewin();}
    var i=3;
    clock();
</script>

</html>
